import Vue from "vue";
import App from "./App";
import store from "./store";
Vue.prototype.$store = store;
import uView from "uview-ui";
import mixin from "@/mixin/share.js"
import navBar from 'components/navBar/navBar.vue'
import MyImage from "@/components/my_image.vue"
import {
	router,
	RouterMount
} from '@/utils/router.js' //路径换成自己的
import utils from 'utils/utils.js'
// import shareMixin from "@/mixin/share"
import {
	VueJsonp
} from 'vue-jsonp/dist'
//引入svg组件
import IIcon from './components/IIcon.vue'
Vue.component('i-icon', IIcon)  //全局注册 i-icon
import tabbar from '@/components/tabbar.vue'
Vue.component('c-tabbar', tabbar)  //全局注册 tabbar
Vue.use(VueJsonp)
Vue.use(uView);
Vue.use(router)
Vue.mixin(mixin)
// 事件总线
Vue.prototype.$bus = new Vue()
Vue.prototype.$utils = utils
Vue.config.productionTip = false;
Vue.component('nav-bar', navBar)
Vue.component('my-image', MyImage)
App.mpType = "app";

const app = new Vue({
	...App,
	store,
});
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
RouterMount(app, router, '#app')
// #endif

// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
